package org.example.service;

import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.entity.Audit;
import org.example.entity.Project;
import org.example.entity.User;
import org.example.mapper.ProjectMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ProjectService extends ServiceImpl<ProjectMapper, Project> {
    @Resource
    private ProjectMapper projectMapper;



    public List<Project> selectproject(String username) {
        return projectMapper.selectproject(username);
    }
    public List<Project> selectProject(String username) {
        return projectMapper.selectProject(username);
    }

    public void updatreview(String projectname) {
        projectMapper.updatreview(projectname);
    }

    public void updatstate(String projectName, String state) {
        projectMapper.updatstate(projectName,state);
    }

    public Project selectprijectname(String projectName) {
        return projectMapper.selectprijectname(projectName);
    }
}
